package com.srit.migration.business.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

import com.srit.base.bean.Page;
import com.srit.migration.business.bean.DbColumn;
import com.srit.migration.business.dao.DbColumnDao;
import com.srit.migration.business.service.DbColumnService;

/**
 * @author guan
 * @by serviceImpl.tem
 * 
 */
 @Service
public class DbColumnServiceImpl implements DbColumnService {
	@Autowired(required = true)
	private DbColumnDao dbColumnDao;

	@Override
	public void save(DbColumn dbColumn) {
		dbColumnDao.save(dbColumn);
	}

	@Override
	public void update(DbColumn dbColumn) {
		dbColumnDao.update(dbColumn);
	}

	@Override
	public DbColumn getById(DbColumn dbColumn) {
		return (DbColumn) dbColumnDao.getById(dbColumn);
	}

	@Override
	public void delete(DbColumn dbColumn) {
		dbColumnDao.delete( dbColumn);
	}

	@Override
	public void page(Page page) {
		dbColumnDao.page( page);
	}
	
	@Override
	public void batchSave(List<DbColumn> dbColumnList) {
		dbColumnDao.batchSave(dbColumnList);

	}

	@Override
	public List list(Page page) {
		return dbColumnDao.list( page);
	}

}
